﻿using HCMS.EntityFrameworkCore;
using Volo.Abp;
using Volo.Abp.Autofac;
using Volo.Abp.Modularity;

namespace HCMS.Web.Manage
{
    /// <summary>
    /// Abp 框架 模块加载 类
    /// </summary>
    [DependsOn(
        //typeof(HCMSHttpApiModule),
        typeof(HCMSApplicationModule),
        typeof(HCMSEntityFrameworkCoreModule),
        typeof(AbpAutofacModule)
    )]
    public class HCMSWebManageModule : AbpModule
    {
        /// <summary>
        /// 预初始化 事件
        /// </summary>
        /// <param name="context"></param>
        public override void PreConfigureServices(ServiceConfigurationContext context)
        {
            var hostingEnvironment = context.Services.GetHostingEnvironment();
            var configuration = context.Services.GetConfiguration();

            //Console.WriteLine("是否【开发 环境】：" + hostingEnvironment.IsDevelopment());
            //Console.WriteLine("配置信息：" + configuration["Logging:LogLevel:Default"]);
        }

        /// <summary>
        /// 初始化 事件
        /// </summary>
        /// <param name="context"></param>
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            
        }

        public override void PostConfigureServices(ServiceConfigurationContext context)
        {
            
        }

    }
}
